package org.smile.homework01.kevin.WithDrawMoney;

import java.util.Scanner;

public class Application {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double amount;
        while(true){
            System.out.println("有客户需要取款，请输入金额：");
            amount = in.nextDouble();
        Client mClient = new Client();
        Approver CounterManager = new CounterManager("张三");
        Approver BrandchManager = new BrandchManager("李四");
        Approver President = new President("王五");

        CounterManager.setSuccessor(BrandchManager);
        BrandchManager.setSuccessor(President);
        President.setSuccessor(CounterManager);

        CounterManager.ProcessRequest(mClient.sendRequest(amount));
    }
    }
}
